#pragma once

#define Die(code)   \
    do              \
    {               \
        exit(code); \
    } while (0)

enum 
{
    USAGE_ERR = 1,
    SOCKET_ERR,
    BIND_ERR,
    SERVER_SEND_ERR,
    LISTEN_ERR,
    CLIENT_SEND_ERR
};

#define CONV(v) (struct sockaddr *)(v)
